import request from '@/utils/request'

// 获取
export const getProdPlan = (id) => {
  return request({
    url: '/steel-arch/client/prod/total/query/'+id,
    method: 'get'
  })
}
export const addProdPlan = (params) => {
  return request({
    url: '/steel-arch/client/prod/total/add',
    data:params,
    method: 'post'
  })
}
export const getList = (params) => {
  return request({
    url: '/steel-arch/client/prod/list',
    params:params,
    method: 'get'
  })
}
export const getprolist = (params) => {
  return request({
    url: '/steel-arch/prodType/listProdTypes',
    params:params,
    method: 'get'
  })
}
export const getDicts = (params) => {
  return request({
    url: '/steel-arch/client/dict/data/list',
    params:params,
    method: 'get'
  })
}
export const updateProd = (params) => {
  return request({
    url: '/steel-arch/client/prod/save',
    data:params,
    method: 'post'
  })
}
export const deleteProd = (id) => {
  return request({
    url: '/steel-arch/client/prod/del/'+id,
    method: 'post'
  })
}

